function timer(ms) {
    return new Promise((resolve) => {
    setTimeout(resolve,ms)
})
}
async function fn() {
    await timer(1000)
    console.log("完成");
}
fn()

